import { defineComponent } from 'vue'
import { useRouter, useRoute } from 'vue-router'

export default defineComponent({
  setup() {
    const router = useRouter()
    const currentRoute = useRoute()

    const { params, query } = currentRoute
    const { path } = params

    router.replace({ path: '/' + path, query })

    return () => <div></div>
  }
})
